package com.huaxindata.im.model.entity;

public class HxWarnModel {

    //id+type+value+title+stationCode+station+device+time+status
    //指标ID+类型+参数+标题+stationCode+站点名称+（设施/设备名称）+ 时间 + 处理状态
    public long id;//ID
    public int type;//类型
    public String value;//参数
    public String title;//标题
    public String stationCode;
    public String station;//站点
    public String device;//设施/设备
    public long time;//时间
    public int status;//状态
    public int read;//是否已读，默认为0表示已读，1表示未读
    public String recv;

    public HxWarnModel() {
    }

    public HxWarnModel(long id, int type, String value, String title, String stationCode, String
            station, String device, long time, int status) {
        this.id = id;
        this.type = type;
        this.value = value;
        this.title = title;
        this.stationCode = stationCode;
        this.station = station;
        this.device = device;
        this.time = time;
        this.status = status;
    }

    @Override
    public String toString() {
        return id + "-" + type + "-" + value + "-" + title + "-" + stationCode + "-" + station +
                "-" + device + "-"
                + time + "-" + status;
    }


    public String toString(int i) {
        return "HxWarnModel{" +
                "id=" + id +
                ", type=" + type +
                ", value='" + value + '\'' +
                ", title='" + title + '\'' +
                ", stationCode='" + stationCode + '\'' +
                ", station='" + station + '\'' +
                ", device='" + device + '\'' +
                ", time=" + time +
                ", status=" + status +
                ", read=" + read +
                ", recv='" + recv + '\'' +
                '}';
    }
}
